/**
 * Copyright (c) 2023-2024 Huawei Technologies Co., Ltd.
 *
 * ascendc_ops is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 * http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

/*!
 * \file flash_attention_score_grad_tiling.h
 * \brief
 */

#pragma once

#include <cstdint>
#include <register/tilingdata_base.h>
#include <tiling/tiling_api.h>
#include "tiling/data_copy_transpose_tiling_def.h"

namespace optiling {

BEGIN_TILING_DATA_DEF(EmptyTensorTilingData)
TILING_DATA_FIELD_DEF(uint32_t, formerDqNum);
TILING_DATA_FIELD_DEF(uint32_t, formerDkNum);
TILING_DATA_FIELD_DEF(uint32_t, formerDpseNum);
TILING_DATA_FIELD_DEF(uint32_t, res);
TILING_DATA_FIELD_DEF(uint64_t, singleCoreDqNum);
TILING_DATA_FIELD_DEF(uint64_t, tailCoreDqNum);
TILING_DATA_FIELD_DEF(uint64_t, singleCoreDkNum);
TILING_DATA_FIELD_DEF(uint64_t, tailCoreDkNum);
TILING_DATA_FIELD_DEF(uint64_t, singleCoreDpseNum);
TILING_DATA_FIELD_DEF(uint64_t, tailCoreDpseNum);
END_TILING_DATA_DEF;
REGISTER_TILING_DATA_CLASS(EmptyTensorTilingDataOp, EmptyTensorTilingData)

BEGIN_TILING_DATA_DEF(FlashAttentionScoreGradTilingData)
TILING_DATA_FIELD_DEF_STRUCT(EmptyTensorTilingData, emptyTensorTilingData);
END_TILING_DATA_DEF;
REGISTER_TILING_DATA_CLASS(FlashAttentionScoreGrad, FlashAttentionScoreGradTilingData)
} // namespace optiling
